# Copyright (c) 2007, Adobe Systems, Incorporated
# All rights reserved.
# 
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# 
# * Redistributions of source code must retain the above copyright
#   notice, this list of conditions and the following disclaimer.
# 
# * Redistributions in binary form must reproduce the above copyright
#   notice, this list of conditions and the following disclaimer in the
#   documentation and/or other materials provided with the distribution.
# 
# * Neither the name of Adobe Systems, Network Resonance nor the names of its
#   contributors may be used to endorse or promote products derived from
#   this software without specific prior written permission.
# 
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# ICE_UTIL_ARCHIVE:
#    source files to compile to object and to place in a library archive
#
# ICE_UTIL_ARCHIVE_NAME:
#    the library name to use to archive the object files
#
# ICE_UTIL_ARCHIVE_TYPE:
#    either 'static', 'dynamic', or 'jni' (the default is 'static')
#
# ICE_UTIL_AUTOGENERATED:
#    whether this targets.mk is autogenerated (either 'true' or 'false')
#
# ICE_UTIL_COMPILE:
#    source files to compile to object
#
# ICE_UTIL_COPY:
#    files to copy to the build directory
#
# ICE_UTIL_GLOBAL_CFLAGS:
#    preprocessor and compile-time flags specific to compiling
#    everything
#
# ICE_UTIL_GLOBAL_LDFLAGS:
#    link-time flags specific to linking everything
#
# ICE_UTIL_LINK:
#    source files compile and link
#
# ICE_UTIL_LOCAL_CFLAGS:
#    preprocessor and compile-time flags specific to compiling only
#    the files in this module directory
#
# ICE_UTIL_LOCAL_LDFLAGS:
#    link-time flags specific to linking only the files in
#    this module directory
#
# ICE_UTIL_PREFIX:
#    defines the module name, which also serves as the
#    prefix for all the variable names defined in this file
#
# ICE_UTIL_SUBDIRS:
#    subdirectories containing additional targets.mk files
#
ICE_UTIL_ARCHIVE                  = cb_args.c ice_util.c mbslen.c
ICE_UTIL_ARCHIVE_NAME             =
ICE_UTIL_ARCHIVE_TYPE             =
ICE_UTIL_AUTOGENERATED            = true
ICE_UTIL_COMPILE                  =
ICE_UTIL_COPY                     =
ICE_UTIL_GLOBAL_CFLAGS            =
ICE_UTIL_GLOBAL_LDFLAGS           =
ICE_UTIL_LINK                     =
ICE_UTIL_LOCAL_CFLAGS             =
ICE_UTIL_LOCAL_LDFLAGS            =
ICE_UTIL_PREFIX                   = ICE_UTIL
ICE_UTIL_SUBDIRS                  =



#
#    AUTOMATICALLY-GENERATED SECTION
#



#
#    LOCAL ENVIRONMENT
#
ICE_UTIL_BUILD                    = cb_args.$(OBJSUFFIX) cb_args.d \
                                    ice_util.$(OBJSUFFIX) ice_util.d \
                                    mbslen.$(OBJSUFFIX) mbslen.d



#
#    GLOBAL ENVIRONMENT
#
GLOBAL_BUILD                     += $(ICE_UTIL_BUILD)
GLOBAL_CFLAGS                    += $(ICE_UTIL_GLOBAL_CFLAGS) \
                                 -I$(ICE_UTIL_SRCDIR)
GLOBAL_LDFLAGS                   += $(ICE_UTIL_GLOBAL_LDFLAGS)



#
#    GENERIC DEPENDENCIES
#
all:                                $(ICE_UTIL_BUILD)
depend:                             cb_args.d
depend:                             ice_util.d
depend:                             mbslen.d



#
#    BUILD DEPENDENCIES
#

cb_args.$(OBJSUFFIX): $(ICE_UTIL_SRCDIR)cb_args.c cb_args.d
	$(COMPILE.c) $@ $< $(ICE_UTIL_LOCAL_CFLAGS) $(GLOBAL_CFLAGS)

cb_args.d: $(ICE_UTIL_SRCDIR)cb_args.c
	$(COMPILE.c) $@ $< -MM -MG $(ICE_UTIL_LOCAL_CFLAGS) $(GLOBAL_CFLAGS)

ice_util.$(OBJSUFFIX): $(ICE_UTIL_SRCDIR)ice_util.c ice_util.d
	$(COMPILE.c) $@ $< $(ICE_UTIL_LOCAL_CFLAGS) $(GLOBAL_CFLAGS)

ice_util.d: $(ICE_UTIL_SRCDIR)ice_util.c
	$(COMPILE.c) $@ $< -MM -MG $(ICE_UTIL_LOCAL_CFLAGS) $(GLOBAL_CFLAGS)

mbslen.$(OBJSUFFIX): $(ICE_UTIL_SRCDIR)mbslen.c mbslen.d
	$(COMPILE.c) $@ $< $(ICE_UTIL_LOCAL_CFLAGS) $(GLOBAL_CFLAGS)

mbslen.d: $(ICE_UTIL_SRCDIR)mbslen.c
	$(COMPILE.c) $@ $< -MM -MG $(ICE_UTIL_LOCAL_CFLAGS) $(GLOBAL_CFLAGS)

$(GLOBAL_LIBNAME): cb_args.$(OBJSUFFIX)

$(GLOBAL_LIBNAME): ice_util.$(OBJSUFFIX)

$(GLOBAL_LIBNAME): mbslen.$(OBJSUFFIX)
